![]() |
EraseRect |
||||
Header: | Quickdraw.h | Carbon status: | Supported | |
Erases a rectangle.
void EraseRect ( const Rect *r );
The rectangle to erase.
Using the patCopy pattern mode, the EraseRect function draws the interior of the rectangle that you specify in the r parameter with the background pattern for the current graphics port. This effectively erases the rectangle, making the shape blend into the background pattern of the graphics port. For example, use EraseRect to erase the port rectangle for a window before redrawing into the window.
This function leaves the location of the graphics pen unchanged.
The EraseRect function may move or purge memory blocks in the application heap; do not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)